package com.qf.erp_system.sys.controller;

import com.qf.erp_system.common.json.JsonResult;
import com.qf.erp_system.common.pojo.sys.SerialNum;
import com.qf.erp_system.sys.service.SerialNumService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/number")
public class serialNumController {
    @Resource
    private SerialNumService serialNumService;
    @GetMapping("serialNum")
    public JsonResult<List<SerialNum>> listSerialNum(){
        List<SerialNum> serialNums = serialNumService.listSerialNum();
        return JsonResult.ok(serialNums);
    }
}
